package com.pjb.springbootjjwt.api;

import com.pjb.springbootjjwt.annotation.UserLoginToken;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author yf
 * @package com.pjb.springbootjjwt.api
 * @create 2021-02-03 15:11
 */
@RestController
@RequestMapping("message")
public class MessageApi {

    @UserLoginToken
    @GetMapping("/getMessage")
    public String getMessage(){
        return "你已通过验证";
    }
}
